<template>
    <div>
        <submitForm :form-data="formData" :form_id="form_id"/>
    </div>
</template>

<script>
import {getFormWork} from "@/api";
import submitForm from "@/components/public/submitForm";

export default {
  name: 'Index',
  components: {
    submitForm
  },
  data() {
    return {
      form_id: 34,
      formData: []
    }
  },
  created() {
    this.getFormWork()
  },
  methods: {
    getFormWork() {
      let params = {id: this.form_id}
      getFormWork(params).then(response => {
        console.log(response)
        let data = response.data

        this.formData = data
      }).catch(error => console.log(error))
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
